/*var Ajax;
if (Ajax && (Ajax != null)) {
	Ajax.Responders.register({
	  onCreate: function() {
        if($('spinner') && Ajax.activeRequestCount>0)
          Effect.Appear('spinner',{duration:0.5,queue:'end'});
	  },
	  onComplete: function() {
        if($('spinner') && Ajax.activeRequestCount==0)
          Effect.Fade('spinner',{duration:0.5,queue:'end'});
	  }
	});
}*/

$j(document).ready(function() {
	//	Set focus
	if($j("#action").val() == 'list') {
		$j("#searchbar :first-child").focus();
	} else {
		$j(".focus").focus();
	}
	
	$j(".roundedCorners").corner("tl bl tr br 20px");
});
